package entity;

public class MobileCard {
    //手机卡
    private String cardNumber;//卡号
    private String userName;//用户名
    private String passWord;//密码
    private ServicePackage servicePackage;//所属套餐
    private double consumAmount;//当月消费金额
    private double money;//账户余额
    private int realTalkTime;//实际通话时长（分钟）
    private int realSMSCount;//实际发送短信条数（条）
    private int realflow;//实际上网流量

    public MobileCard(String userName, String s, String s1, TalkPackage talkPackage, double v, double v1) {
    }

    public MobileCard(String cardNumber, String userName, String passWord, ServicePackage servicePackage, double consumAmount, double money, int realTalkTime, int realSMSCount, int realflow) {
        this.cardNumber = cardNumber;
        this.userName = userName;
        this.passWord = passWord;
        this.servicePackage = servicePackage;
        this.consumAmount = consumAmount;
        this.money = money;
        this.realTalkTime = realTalkTime;
        this.realSMSCount = realSMSCount;
        this.realflow = realflow;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public ServicePackage getServicePackage() {
        return servicePackage;
    }

    public void setServicePackage(ServicePackage servicePackage) {
        this.servicePackage = servicePackage;
    }

    public double getConsumAmount() {
        return consumAmount;
    }

    public void setConsumAmount(double consumAmount) {
        this.consumAmount = consumAmount;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getRealTalkTime() {
        return realTalkTime;
    }

    public void setRealTalkTime(int realTalkTime) {
        this.realTalkTime = realTalkTime;
    }

    public int getRealSMSCount() {
        return realSMSCount;
    }

    public void setRealSMSCount(int realSMSCount) {
        this.realSMSCount = realSMSCount;
    }

    public int getRealflow() {
        return realflow;
    }

    public void setRealflow(int realflow) {
        this.realflow = realflow;
    }

    //显示卡信息
    public void showMeg(){
        System.out.println("卡号："+this.cardNumber+"用户名："+this.userName+"当前余额："+this.money+"元");
        this.servicePackage.showInfo();
    }
}
